package com.vshop.framework.mybatisflex.context;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
public class UserContext implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户 ID
     */
    private Long userId;

    /**
     * 部门 ID
     */
    private Long deptId;

    private boolean isSuperAdmin;

    /**
     * 角色列表
     */
    private List<RoleContext> roles;
}
